const express = require('express')
const app = express()

const bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())
// app.get('/login',(req,res) => {
//     console.log(req.query,11111);
//     res.send(req.query)    
// })


// app.get('/login/:name/:age',(req,res) => {
//     res.send(req.params)
// })

app.post('/submit/info',(req,res) => {
    console.log(req.body);
    
    res.send(req.body)
})

app.listen(3001,() => {
    console.log('http://127.0.0.1:3001');
})